﻿using System;
using System.Collections.Generic;
using HAVNet.Core;
using HAVNet.Core.String;


namespace HAVNet.Intros.AST
{
    public class ASTGlobalAttributes : ASTNode
    {
        ASTAttributes _attributes = null;
        
        public string ident { get; set; }
        public ASTAttributes attributes { get { if (null == _attributes) _attributes = new ASTAttributes(); return _attributes; } }

        public override string ToString()
        {
            return
                "[" +
                Lazy.toStringNN (ident, "", ":") +
                Strings.joinobjs(Environment.NewLine, attributes)   +
                "]" ;
        }
    }
}
